package com.vietnam.power.service;

import java.util.List;

import com.vietnam.power.domain.Product;
import com.vietnam.power.domain.ProductGroup;
import com.vietnam.power.domain.ProductGroupSearchCriteria;
import com.vietnam.power.domain.ProductSearchCriteria;

public interface ProductService {

	public List<ProductGroup> getProductGroupAsClientMenu();

	public List<Product> searchProductByCriteria(ProductSearchCriteria psc, Integer page);

	public Product getProductById(int pId);

	public List<ProductGroup> searchProductGroup(ProductGroupSearchCriteria s);
	
	public void createProductGroup(ProductGroup pg);

	public ProductGroup getProductGroupById(int id);

	public void updateProductGroup(ProductGroup pg);

	public void deleteProductGroup(int id);

	// product
	public void createProduct(Product p);

	public List<Integer> updateProduct(Product p);

	public List<Integer> deleteProduct(int id);
	
	public List<Product> searchProduct(ProductSearchCriteria s);
}
